package com.honglv.pojo.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @Auther: 生
 * @Date: 2024/03/17/20:33
 * @Description:资讯
 */
@Getter
@Builder
@AllArgsConstructor
@TableName("tb_news")
public class News {
    private long id;

    //标题
    private String title;

    //介绍
    private String context;

    //图片
    private List<String> pictures;

    //发布时间
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    //作者
    private Long authorId;

    //浏览量
    private Long views;

    //点赞
    private Long like;
}
